package com.hlhj.funlike_business.activity.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hlhj.funlike_business.R;
import com.hlhj.funlike_business.bean.WaterListBean;

import java.util.List;

public class WaterListAdp extends BaseQuickAdapter<WaterListBean.DataBeanX.DataBean,BaseViewHolder>{
    public WaterListAdp(@Nullable List<WaterListBean.DataBeanX.DataBean> data) {
        super(R.layout.adp_waterlist,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WaterListBean.DataBeanX.DataBean item) {
        TextView tv_ordername = helper.getView(R.id.tv_ordername);
        TextView tv_watermoney = helper.getView(R.id.tv_watermoney);
        TextView tv_nickname = helper.getView(R.id.tv_nickname);
        TextView tv_phone = helper.getView(R.id.tv_phone);
        TextView tv_date = helper.getView(R.id.tv_date);

        tv_ordername.setText(item.getRemark());
        tv_watermoney.setText("￥" + item.getMoney());
        tv_nickname.setText("昵称:"+item.getUser_nickname());
        tv_phone.setText("手机号:" + item.getMobile());
        tv_date.setText(item.getCreate_time());
    }
}
